'use strict';
/*
 * 日志中心
 * @type {*}
 */
let underscore = require('underscore');
let RestifyProxy = require('../../util/RestifyProxy');
let StringUtil = require('../../util/StringUtil');
let Constant = require('../../model/Constant');
let baseService = require('../BaseService');
const URI = {
    RUN: '/log/runninglog/list',//运行列表
    RUN_TYPE:'/log/runninglog/types',//运行日志类型
    RUN_CLEAR: '/log/runninglog/delete',//运行清理日志按钮
    /*操作日志*/
    OPERATE: '/log/operatelog/list',//操作列表
    OPERATE_TYPE: '/log/operatelog/types',//操作日志类型
    OPERATE_CLEAR: '/log/operatelog/delete'//操作清理日志按钮
};

/*运行日志——列表*/
module.exports.runList = function (thiz, params) {
    return baseService.get(thiz, URI.RUN, params);
};
/*运行日志——日志类型*/
module.exports.runType = function (thiz, params) {
    return baseService.get(thiz, URI.RUN_TYPE, params);
};
/*运行日志——清理按钮*/
module.exports.runClear = function (thiz, params) {
    return baseService.post(thiz, URI.RUN_CLEAR, params);
};

/*操作日志——列表*/
module.exports.operateList = function (thiz, params) {
    return baseService.get(thiz, URI.OPERATE, params);
};
/*操作日志——日志类型*/
module.exports.operateType = function (thiz, params) {
    return baseService.get(thiz, URI.OPERATE_TYPE, params);
};
/*操作日志——清理按钮*/
module.exports.operateClear = function (thiz, params) {
    return baseService.post(thiz, URI.OPERATE_CLEAR, params);
};